-- GENERATED SPELL FOR [Dragonflayer Flamebinder] --


function spell0_27259(pUnit, Event) --@Flame Patch,n/a--
pUnit:FullCastSpellOnTarget(52208,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27259', 8000, 1)
end

function spell1_27259(pUnit, Event) --@Incite Flames,n/a--
pUnit:FullCastSpellOnTarget(52209,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27259', 3000, 1)
end

function Sorts_27259(pUnit, Event)
local choix_sorts_27259 = math.random(0, 1)
if choix_sorts_27259 == 0 then
pUnit:RegisterEvent('spell0_27259', 1, 1)
end
if choix_sorts_27259 == 1 then
pUnit:RegisterEvent('spell1_27259', 1, 1)
end
end

function mob27259_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27259', math.random(1500, 3000), 1)
end

function mob27259_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27259_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27259_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27259, 1, 'mob27259_Action')
RegisterUnitEvent(27259, 2, 'mob27259_Leave')
RegisterUnitEvent(27259, 3, 'mob27259_Kill')
RegisterUnitEvent(27259, 4, 'mob27259_Die')
